package org.hq.security.contryoller;

import org.hq.security.utils.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class Login {
    @Autowired
    private RedisUtil redis;

    @GetMapping("/mylogin")
    public String mylogin() {

        redis.set("sd", "myvalue");

        redis.rightPop("sd");
        System.out.println("sd=" );




        return "mylogin";
    }
}
